# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=sipexer
pkgver=1.0.2
pkgrel=0
pkgdesc="Modern and flexible SIP (RFC3261) command line tool."
url="https://github.com/miconda/sipexer"
arch="all"
license="GPL-3.0"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/miconda/sipexer/archive/refs/tags/v$pkgver.tar.gz"

export GOPATH="$srcdir"

build() {
	go get ./...
	go build -v -o bin/ ./...
}

check() {
	go test ./...
}

package() {
	install -m755 -D bin/sipexer "$pkgdir"/usr/bin/sipexer
}

cleanup_srcdir() {
	go clean -modcache
	default_cleanup_srcdir
}

sha512sums="
05007667304eed9db45b8fc9e3e1fcda6377c64e43216cd1794168454ed0af241a90a77101021b6c9ecf50c56049344928cfded5984b252aa104b27c406a42d0  sipexer-1.0.2.tar.gz
"
